package com.cloudbroker.bcs.platform.ltb.bizexport.t2.business;

import com.cloudbroker.bcs.common.entity.PageBackVO;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.response.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.base.back.ResultVO;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.LeaderBizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.back.ComuserSignQryList;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.back.InviteLogList;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.back.LeaderBackVo;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.back.LeaderListBackVo;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.vo.InviteLogForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.vo.LeaderGetMessageForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.vo.MiddleComuserSignQryForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.leader.vo.MiddleUserAdviserHisQryForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.ComUserCollectForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.LeaderRankForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.LeaderRecommendForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.user.vo.UserListQueryForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.business.LeaderT2BizService;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceParam;
import org.springframework.stereotype.Service;
import scala.collection.immutable.Page;

import javax.annotation.Resource;

/**
 * Created by tianrui on 2016/7/22.
 */
@Service
public class LeaderT2 implements LeaderT2BizService {

    @Resource
    LeaderBizService leaderBizService;

    @Override
    public LeaderBackVo getLeaderMsg(@ServiceParam("param") LeaderGetMessageForm form) {
        LeaderBackVo backVo = leaderBizService.getLeaderMessage(form);
//        leaderBizService.test();
        return backVo;
    }

    @Override
    public RecommendInterestQryBackVo comuser_recommend_qry(LeaderRecommendForm form) {
        return leaderBizService.comuser_recommend_qry(form);
    }

    @Override
    public InterestRankQryBackVo func_interest_rank_query(LeaderRankForm form) {
        return leaderBizService.interest_rank_query(form);
    }

    @Override
    public FocusInterestQryBackVo func_interest_focus(ComUserCollectForm form) {
        return leaderBizService.interest_focus(form);
    }

    @Override
    public LeaderListBackVo getLeaderList(UserListQueryForm form) {
        return leaderBizService.getLeaderList(form);
    }

    @Override
    public UserAdviserHisQryVo func_user_adviser_his_qry(MiddleUserAdviserHisQryForm form) {
        return leaderBizService.user_adviser_his_qry(form);
    }

    public InviteLogList fetchInviteLogs(InviteLogForm form){
        InviteLogList pa= leaderBizService.fetchInviteLogs(form);
        return pa;
    }

    @Override
    public ComuserSignQryList func_comuser_sign_qry(MiddleComuserSignQryForm form) {
        return leaderBizService.func_comuser_sign_qry(form);
    }
}
